From 84dd6a99b8d490ba68b7aad381b4ce2ae7efe43b Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Wed, 6 Feb 2008 16:32:41 +0000 Subject: [PATCH] Check if the window is a temp window, otherwise things get wonky when you 2008-02-06 Cody Russell * gdk/win32/gdkevents-win32.c: Check if the window is a temp window, otherwise things get wonky when you click on a menu. This fixes a regression caused in #505928. Thanks to Tor for spotting this one! (#514789) svn path=/trunk/; revision=19482 --- ChangeLog | 7 +++++++ gdk/win32/gdkevents-win32.c | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f280423773..7427e6afc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-02-06 Cody Russell + + * gdk/win32/gdkevents-win32.c: Check if the window is a temp window, + otherwise things get wonky when you click on a menu. This fixes + a regression caused in #505928. Thanks to Tor for spotting this + one! (#514789) + 2008-02-06 Michael Natterer * gtk/gtkcontainer.c diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 739c451ec7..989f1ef708 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -2988,7 +2988,11 @@ gdk_event_translate (MSG *msg, GDK_WINDOW_STATE_MAXIMIZED | withdrawn_bit, 0); - show_window_internal (window, FALSE); + + if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_TEMP) + { + show_window_internal (window, FALSE); + } } else if (msg->wParam == SIZE_MAXIMIZED) { -- 2.30.2